<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="layui/common/commonHead :: commonHead(~{::title},~{},~{})">
    <title>用户详情</title>
</head>
<body>

<div class="layui-form"  lay-filter="userEdit" id="userEdit" style="padding: 20px 0 0 0;">
    <input hidden type="text" name="id" th:value="${user.id}">
    <div class="layui-form-item">
        <label class="layui-form-label">用户名</label>
        <div class="layui-input-inline">
            <input type="text" disabled name="userAccount" th:value="${user.userAccount}" lay-verify="required" placeholder="请输入用户名(必填)" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">真实姓名</label>
        <div class="layui-input-inline">
            <input type="text" disabled name="realName" th:value="${user.realName}"  placeholder="请输入姓名(选填)" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">昵称</label>
        <div class="layui-input-inline">
            <input type="text" disabled name="nickName" th:value="${user.nickName}"  placeholder="请输入昵称(选填)" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">手机号码</label>
        <div class="layui-input-inline">
            <input type="text" disabled name="phone" th:value="${user.phone}"  placeholder="请输入号码(选填)" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">邮箱</label>
        <div class="layui-input-inline">
            <input type="text" disabled name="email"  th:value="${user.email}" placeholder="请输入邮箱(选填)" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item layui-hide">
        <label class="layui-form-label">头像</label>
        <div class="layui-input-inline">
            <input type="text" name="avatar" placeholder="请上传图片(选填)" autocomplete="off" class="layui-input" >
        </div>
        <button style="float: left;" type="button" class="layui-btn" id="layuiadmin-upload-useradmin">上传图片</button>
    </div>
    <div class="layui-form-item" lay-filter="sex">
        <label class="layui-form-label">选择性别</label>
        <div class="layui-input-block">
            <input type="radio" th:disabled="${user.sex == '2'}" name="sex" value="1" title="男" th:checked="${user.sex == 1}">
            <input type="radio" th:disabled="${user.sex == '1'}" name="sex" value="2" title="女" th:checked="${user.sex == 2}"}>
        </div>
    </div>
    <div class="layui-form-item" lay-filter="enable">
        <label class="layui-form-label">是否锁定</label>
        <div class="layui-input-block">
            <input type="radio" th:disabled="${user.enable == 1}" name="enable" value="Y" title="正常" th:checked="${user.enable == 1}">
            <input type="radio" th:disabled="${user.enable == 2}" name="enable" value="N" title="锁定" th:checked="${user.enable == 2}">
        </div>
    </div>
</div>

<div th:replace="layui/common/commonJs :: commonJs(~{})"></div>
<script>
    layui.use(['index', 'form', 'upload'], function(){});
</script>
</body>
</html>